package database.objects;

/**
 * Object class for tag. Corresponds with the database tag table.
 * 
 * @author Project group 9
 * 
 */
public class Tag implements DatabaseObject {

	private long id;
	private String name;
	private boolean visible;

	/**
	 * Construtor that creates a new Tag object.
	 * 
	 * @param id
	 *            The id of a tag
	 * @param name
	 *            The tag
	 */
	public Tag(long id, String name, boolean visible) {
		this.id = id;
		this.name = name;
		this.visible = visible;
	}

	/**
	 * Constructor that creates a fake Tag object, with fake values.
	 */
	public Tag() {
		this.id = -1;
		this.name = "";
		this.visible = false;
	}

	public long getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public boolean getVisible() {
		return visible;
	}

	public void setVisible(boolean visible) {
		this.visible = visible;
	}
}
